﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;

namespace VK.Casemeet.Pages
{
    public static class CustomPageHelper
    {
        public static string GetTypeLabel(int type)
        {
            string result = string.Empty;
            switch (type)
            {
                case 1: result = "系统"; break;
                case 2: result = "自定义"; break;
            }
            return result;
        }

        public static void BindTypeRAD(RadioButtonList radlst)
        {
            radlst.Items.Clear();
            radlst.Items.Add(new ListItem("系统", "1"));
            radlst.Items.Add(new ListItem("自定义", "2"));
            radlst.SelectedIndex = 0;
        }
    }
}
